Skip to content

Scale MachineDeployments from the web dashboard - #3975

Merged
kubermatic-bot merged 10 commits into
kubermatic:mainfrom
kron4eg:templ
Jul 27, 2026
Merged

Scale MachineDeployments from the web dashboard#3975
kubermatic-bot merged 10 commits into
kubermatic:mainfrom
kron4eg:templ

Conversation

@kron4eg

@kron4eg kron4eg commented Jan 29, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

  • Templ gives us nice type-safety in HTML template
  • Added MachineDeployment scale up/down
  • Added listing of pods on individual Node
  • Added deletion of specific Machine
  • Added forced rollout of the MachineDeployment

Which issue(s) this PR fixes:

Fixes #

What type of PR is this?
/kind feature

Special notes for your reviewer:

Does this PR introduce a user-facing change? Then add your Release Note here:

new UI features:
- Added MachineDeployment scale up/down
- Added listing of pods on individual Node
- Added deletion of specific Machine
- Added forced rollout of the MachineDeployment

Documentation:

NONE

@kubermatic-bot kubermatic-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/design Categorizes issue or PR as related to design. release-note-none Denotes a PR that doesn't merit a release note. docs/none Denotes a PR that doesn't need documentation (changes). dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Jan 29, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubermatic-bot kubermatic-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 29, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.
After a furter 30 days, they will turn rotten.
Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@kubermatic-bot kubermatic-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 29, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@kubermatic-bot kubermatic-bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 30, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

@kubermatic-bot

Copy link
Copy Markdown
Contributor

@kubermatic-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kron4eg kron4eg reopened this Jun 29, 2026
@kron4eg kron4eg removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale. label Jun 29, 2026
kron4eg added 2 commits July 25, 2026 11:50
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
- Introduced ScaleButtons component to handle scaling up and down of machine deployments.
- Updated MachineDeploymentsTable to include available replicas and scale buttons.
- Implemented scaleHandler to process scaling requests via POST method.
- Added error handling for invalid requests in scaleHandler.
- Updated server routing to include the new scale endpoint.

Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
kron4eg added 5 commits July 25, 2026 12:33
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
…pdates

Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
- Introduced a new endpoint `/delete-machine` to handle machine deletion requests.
- Added a `deleteMachineForm` struct to capture the namespace and name of the machine to be deleted.
- Implemented logic to validate input, retrieve the machine object, and perform the deletion using the dynamic client.
- Updated the `getNodes` and `getMachineDeployments` functions to include the `Unschedulable` field for nodes and changed the `Machines` field to a slice in the `machineDeployment` struct.

Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
- Implemented `getPodsForNode` function to retrieve pods associated with a specific node.
- Added `podsHandler` to handle GET requests for listing pods by node.
- Introduced `deletePodHandler` for handling pod deletion requests.
- Created a new `deletePodForm` struct to manage pod deletion form data.
- Updated server routes to include endpoints for pods and pod deletion.

Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
…ete-machine, and delete-pod endpoints

Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kron4eg kron4eg changed the title Use templ as template enine for dashboard component templates Update UI functionality Jul 25, 2026
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Jul 25, 2026
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kron4eg
kron4eg marked this pull request as ready for review July 25, 2026 13:38
@kubermatic-bot kubermatic-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 25, 2026
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kron4eg
kron4eg marked this pull request as draft July 27, 2026 08:00
@kubermatic-bot kubermatic-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 27, 2026
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kron4eg

kron4eg commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

/test pull-kubeone-verify-boilerplate

@kron4eg kron4eg changed the title Update UI functionality Scale MachineDeployments from the web dashboard Jul 27, 2026
@kron4eg
kron4eg marked this pull request as ready for review July 27, 2026 09:10
@kubermatic-bot kubermatic-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 27, 2026

@buraksekili buraksekili left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 1be43765a2de6f30a37c90f96667fbdacf6b7dc4

@kubermatic-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: buraksekili

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 27, 2026
@kron4eg kron4eg added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 27, 2026
@kubermatic-bot
kubermatic-bot merged commit a68fa69 into kubermatic:main Jul 27, 2026
12 checks passed
@kubermatic-bot kubermatic-bot added this to the KubeOne 1.14 milestone Jul 27, 2026
@kron4eg
kron4eg deleted the templ branch July 27, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/none Denotes a PR that doesn't need documentation (changes). kind/design Categorizes issue or PR as related to design. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants